package com.ycy.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.ycy.pojo.Role;

@Mapper
public interface RoleDao {

	List<Role> findall();

	int del(int id);

	int add(@Param("role") Role role);

	Role findIt(String name);

	int edit(@Param("role")Role role);

}
